#!/bin/bash
tar zxvf percona-xtrabackup-2.4.9-Linux-x86_64.tar.gz -C /usr/local/
ln -s /usr/local/percona-xtrabackup-2.4.9-Linux-x86_64 /usr/local/percona-xtrabackup
echo 'export PATH=/usr/local/percona-xtrabackup/bin:$PATH' >> /etc/profile
source /etc/profile

if ! $( command -v wget >/dev/null 2>&1 ); then
  yum install wget -y
fi
rm -rf /usr/lib64/libstdc++.so.6.0.17
rm -rf /usr/lib64/libstdc++.so.6
wget -O /usr/lib64/libstdc++.so.6.0.17 http://test.wgmf.com/mirrors/glibc/libstdc++.so.6.0.17
ln -s /usr/lib64/libstdc++.so.6.0.17 /usr/lib64/libstdc++.so.6
strings /usr/lib64/libstdc++.so.6 | grep GLIBC
xtrabackup -v






